import request from '@/utils/request'

// 查询企业概况列表
export function listQyEnterprise(query) {
  return request({
    url: '/energy/qyEnterprise/list',
    method: 'get',
    params: query
  })
}

// 查询企业概况详细
export function getQyEnterprise(id) {
  return request({
    url: '/energy/qyEnterprise/' + id,
    method: 'get'
  })
}

// 新增企业概况
export function addQyEnterprise(data) {
  return request({
    url: '/energy/qyEnterprise',
    method: 'post',
    data: data
  })
}

// 修改企业概况
export function updateQyEnterprise(data) {
  return request({
    url: '/energy/qyEnterprise',
    method: 'put',
    data: data
  })
}

// 删除企业概况
export function delQyEnterprise(id) {
  return request({
    url: '/energy/qyEnterprise/' + id,
    method: 'delete'
  })
}
